package com.rds.document.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.rds.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 文档系统项目成员对象 rda_pms_member_rel
 *
 * @author rds
 * @date 2021-08-13
 */
public class PmsDocRel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 项目对象Id */
    private String pmsid;

    /** 文档对象Id */
    private String docid;

    /** 项目成员Id */
    private String securitylevel;

    /** 创建者 */
    private Integer ownerid;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date modifyTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPmsid() {
        return pmsid;
    }

    public void setPmsid(String pmsid) {
        this.pmsid = pmsid;
    }

    public String getDocid() {
        return docid;
    }

    public void setDocid(String docid) {
        this.docid = docid;
    }

    public Integer getOwnerid() {
        return ownerid;
    }

    public void setOwnerid(Integer ownerid) {
        this.ownerid = ownerid;
    }

    public String getSecuritylevel() {
        return securitylevel;
    }

    public void setSecuritylevel(String securitylevel) {
        this.securitylevel = securitylevel;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
                .append("pmsid", getPmsid())
                .append("docid", getDocid())
                .append("ownerid", getOwnerid())
                .append("modifyTime", getModifyTime())
                .append("securitylevel", getSecuritylevel())
            .append("createTime", getCreateTime())
            .toString();
    }
}
